﻿'*******************************************************************************************
'* Copyright Brügmann Software GmbH, Papenburg
'* Author: Björn Kremer
'* Contact: codeplex<at>patorg.de
'* 
'* VB.CMIS is a VB.NET implementation of the Content Management Interoperability Services (CMIS) standard
'*
'* This file is part of VB.CMIS.
'* 
'* VB.CMIS is free software: you can redistribute it and/or modify
'* it under the terms of the GNU Lesser General Public License as published by
'* the Free Software Foundation, either version 3 of the License, or
'* (at your option) any later version.
'* 
'* VB.CMIS is distributed in the hope that it will be useful,
'* but WITHOUT ANY WARRANTY; without even the implied warranty of
'* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'* GNU Lesser General Public License for more details.
'* 
'* You should have received a copy of the GNU Lesser General Public License
'* along with VB.CMIS. If not, see <http://www.gnu.org/licenses/>.
'*******************************************************************************************
Imports System.ServiceModel.Syndication
Imports System.Xml
Imports CMISObjectModel.Constants
Namespace Syndication.ServiceDocument
   ''' <summary>
   ''' Container for the RepositoryInfo. This class is needed to convert the RepositoryInfo to a Atom document.
   ''' </summary>
   ''' <remarks></remarks>
   Public Class CmisServiceDocument
      Inherits ServiceModel.Syndication.ServiceDocument
      Public Sub New()
         'Add necessary namespaces
         Me.AttributeExtensions.Add(New XmlQualifiedName("cmis", CmisNamespaceConstants.Xmlns), CmisNamespaceConstants.Cmis)
         Me.AttributeExtensions.Add(New XmlQualifiedName("cmism", CmisNamespaceConstants.Xmlns), CmisNamespaceConstants.Cmism)
         Me.AttributeExtensions.Add(New XmlQualifiedName("atom", CmisNamespaceConstants.Xmlns), CmisNamespaceConstants.Atom)
         Me.AttributeExtensions.Add(New XmlQualifiedName("app", CmisNamespaceConstants.Xmlns), CmisNamespaceConstants.App)
         Me.AttributeExtensions.Add(New XmlQualifiedName("cmisra", CmisNamespaceConstants.Xmlns), CmisNamespaceConstants.Cmisra)
      End Sub
   End Class
End Namespace